package com.it.zuoning.sbh.file.controller;

import com.it.zuoning.sbh.file.service.StoreFileService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import javax.servlet.http.HttpServletResponse;
import java.util.List;

/**
 * @ClassName StoreFileController
 * @Description: TODO
 * @Author 小白
 * @Date 2019/12/15
 * @Version V1.0
 **/
@RestController
@RequestMapping("/file")
public class StoreFileController {

    @Resource
    private StoreFileService storeFileService;

    @GetMapping(value = "/static")
    public List<String> staticFileList(String filePath, HttpServletResponse response) {
        return storeFileService.staticFileList(filePath, response);
    }
}
